package com.itheima.api_date.regex;

/**
 * @author Anomaly
 * @date 2022/12/30 17:34
 */
public class RegexDemo3 {
    public static void main(String[] args) {
        String names = "ejsdk哈哈hjowi呵呵asdhjdg嘿嘿sjkdks鬼djkfj";
        String[] split = names.split("\\w+");
        for (int i = 0; i < split.length; i++) {
            System.out.println(i + " : " + split[i]);
        }

        String s = names.replaceAll("\\w+", ",");
        System.out.println(s);
    }
}
